 <meta charset="utf-8">
 <div class="box box-info" id="biz_bizpoint_conatainer">
            <div class="box-header with-border">
               <form id="searchForm" role="form" class="form-inline">
                    <div class="form-group">
                         <label>执行计划标识</label>
                         <input name="name"  v-model="searchForm.runRemark"  type="text" placeholder="" class="form-control">
                    </div>
                <div class="form-group">
	                  <label for="searchForm.status" >计划状态 </label>
	                   <select v-model="searchForm.status"  class="form-control"   >
	                    <option  value="">请选择</option>
					    <option  value="0">执行中</option>
					    <option value="1">成功</option>
					    <option value="2">失败</option>
					  </select>
                	</div>
                
                  <button type="button"  class="btn btn-info pull-right m-t-n-xs" v-kperms="{perm:''}" v-on:click="search"><strong>查询</strong></button>
                </form>
            </div>
 <div class="box-body">
 	<div class="row">
 	  <div class="col-md-12">
                                
           <table id="bizpointBootstrapTable" data-mobile-responsive="true" ></table>
 	  </div>
 	</div>
 </div>
 </div>
<script>
var newaz=new Vue({  
	  el: '#biz_bizpoint_conatainer', 
	  data:{
		  searchForm:{
			  runRemark: null,
			  statTimeType: null,
			  status: null
		  },
	      bus:new Vue()
	  },
	  mounted:function(){
		 var _this=this;
		 _this.initTable();
	  },

    methods: {
  	  initTable: function(){
  		 var　_this=this;
  		  var columns=[
  				{checkbox:true},
				{field:'name',title:'聚合点名称',width:160,sortable:true,formatter: _this.formatLink},
				{field:'status',title:'聚合点状态',width:60,formatter:_this.formatStatus},
				{field:'resultType',title:'结果类型',width:60},
				{field:'dayEnable',title:'日任务使能',width:60},
				{field:'weekEnable',title:'周任务使能',width:60},
				{field:'monthEnable',title:'月任务使能',width:60},
				{field:'yearEnable',title:'年任务使能',width:60}];
  		  
  		  var url="/agg/bizpoin/loadBizpointDataSet";
    		zfesBstable.laodTable($("#bizpointBootstrapTable"),$("#searchForm"),$("#authbizpointTableToolbar"),url,columns,_this.searchForm,{showRefresh:false,showToggle:false,showColumns:false});
  	  },
  	  formatLink: function(value, row, index ){
  		  return '<a href=\"javascript:void(0);\"  onclick=\"showDetail('+row+')\" >'+value+'</a>';
  	  },
      formatStatus: function(value, row, index ){
    	  if(0==value){
    		  return '<span class="label label-warning">禁用</span>';
    	 }if(1==value){
    		  return '<span class="label label-success">正常</span>';
    	 }else if(2==value){
    		return '<span class="label label-danger">失败</span>';
    	}else{return value;}
	  }, 
  	  search:function(){
  		  zfesBstable.reload($("#bizpointBootstrapTable")); 
  	  },
  	  refresh:function(){
  		  zfesBstable.refresh($("#bizpointBootstrapTable"));
  	  },
  	 showDetail: function(row){
 		 var　_this=this;
 		var url="/view/dhtohive/bizpoint/dhtohive.bizpoint.tasks2.html#bizpointId="+bizpointId;
 		zfesRoutie.load(url,"配置详情");
 		 
 	  }
   	
   }

});

function showDetail(row){
	newaz.showDetail(row);
}
</script>


